export interface Timestamp {
  start: number;
  end: number;
}

export type DurationUnitType = "m" | "h" | "d" | "M" | "y";

export enum DurationUnitTypeUnitTypeTranslation {
  m = "分钟",
  h = "小时",
  d = "天",
  M = "月",
  y = "年",
}

export enum PresetValue {
  TODAY = "TODAY",
  YESTERDAY = "YESTERDAY",
  THIS_WEEK = "THIS_WEEK",
  LAST_WEEK = "LAST_WEEK",
  THIS_MONTH = "THIS_MONTH",
  LAST_MONTH = "LAST_MONTH",
}

export type TimeMarkType = "preset" | "duration" | "timeRange" | undefined;

export interface DurationUnitOption {
  value: DurationUnitType;
  label: string;
}
